package com.spboot.service.impl;

import com.spboot.entity.User;
import com.spboot.mapper.UserMapper;
import com.spboot.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author guocb
 * @since 2020-04-27
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public User login(Long phone, String password) {
        return this.baseMapper.login(phone,password);
    }

    @Override
    public User user(Integer userid) {
        return this.baseMapper.user(userid);
    }

    @Override
    public int updateuser(String username, String phone, String email, Integer userid) {
        return this.baseMapper.updateuser(username, phone, email, userid);
    }
}
